package model

import "time"

type HomeMenu struct {
	Id        int         `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	Url       string      `xorm:"" json:"url" form:"url" mapstructure:"url"`
	Icon      string      `xorm:"" json:"icon" form:"icon" mapstructure:"icon"`
	Title     string      `xorm:"" json:"title" form:"title" mapstructure:"title"`
	ParentId  int         `xorm:"" json:"parent_id" form:"parent_id" mapstructure:"parent_id"`
	Acid      int         `xorm:"" json:"acid" form:"acid" mapstructure:"acid"`
	DeletedAt time.Time   `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
	SubMchId  string      `xorm:"" json:"sub_mch_id" form:"sub_mch_id" mapstructure:"sub_mch_id"`
	State     int         `xorm:"" json:"state" form:"state" mapstructure:"state"`
	Children  []*HomeMenu `xorm:"-" json:"children"`
}
